import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
   
class Display extends JFrame 
{
	myJPanel drawingArea;

	public static void main(String[] args) {
		new Display(null);
	}

	public void refresh() {
		drawingArea.repaint();
	}

	public Display(Sim2dSymbolTable sym) {
		super("Using Display with Borders");
		addWindowListener(new WindowExiter());
		Container content = getContentPane();
		content.setBackground(Color.lightGray);
		drawingArea = new myJPanel(sym);
		drawingArea.setPreferredSize(new Dimension(600, 600));
		drawingArea.setBorder(BorderFactory.createLineBorder (Color.blue, 2));
		drawingArea.setBackground(Color.white);
		content.add(drawingArea, BorderLayout.WEST);
		pack();
		setVisible(true);
	}
}

